<template>
  <view class="page">
    <UserDate/>
    <view class="times flexR">
      <view class="time">一月内</view>
      <view class="time">半年内</view>
      <view class="time">一年内</view>
      <view class="time">全部</view>
    </view>
    
    <view class="tcard">
      <view class="title flexR">
        内科中心病区
        <view class="tig_status warning">
          住院中
          <view class="money red">
            -1248.33
          </view>
        </view>
      </view>
      <view class="tform no-border left">
        <view class="tform-item">
          <view class="label">住院患者：</view>
          <view class="value">{{userInfo.name}}</view>
        </view>
        <view class="tform-item">
          <view class="label">入院科室：</view>
          <view class="value">门诊内一科</view>
        </view>
        <view class="tform-item">
          <view class="label">入院日期：</view>
          <view class="value">2024-09-09 14:37:55</view>
        </view>
        <view class="tform-item">
          <view class="label">出院日期：</view>
          <view class="value">2024-09-09 14:37:55</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  import { mapGetters } from 'vuex';
  import UserDate from '@/components/UserInfo/user-date.vue'
  export default {
    components: {UserDate},
    data() {
      return {
        
      }
    },
    computed:{
    	...mapGetters(['userInfo']),
    },
    methods: {
      
    }
  }
</script>

<style scoped lang="scss">
.times {
  justify-content: space-around;
  align-items: center;
  gap: 10upx;
  width: 100vw;
  padding: 24upx 16upx;
  position: sticky;
  top: 0;
  left: -32upx;
  transform: translateY(-32upx);
  margin-left: -32upx;
  margin-right: -32upx;
  margin-bottom: -32upx;
  .time {
    height: 48upx;
    flex: 1;
    background-color: #FFF;
    text-align: center;
    line-height: 48upx;
    border-radius: 4upx;
  }
}
.title {
  justify-content: space-between;
}
.tig_status {
  position: relative;
}
.money {
  position: absolute;
  bottom: -50upx;
  right: 0;
  font-family: PingFang SC, PingFang SC;
  font-weight: bold;
  font-size: 36upx;
  color: $theme-color;
}
</style>
